import request from '@/utils/request'

export function fetchQudao() {
  return request({
    url: '/settle/index/flow_list.html',
    method: 'get'
  })
}

export function fetchList(data) {
  return request({
    url: '/v1/supplement',
    method: 'get',
    params: data
  })
}

export function create(data,params) {
  return request({
    url: '/v1/supplement',
    method: 'post',
    data,
    params
  })
}

export function update(data,params) {
  return request({
    url: '/v1/supplement',
    method: 'put',
    data,
    params
  })
}

export function del(id) {
  return request({
    url: '/settle/deduct/channel_repair_del/id/' + id + '.html',
    method: 'get'
  })
}
